package com.yan.design.two.behavior.s9.s2;

/**
 * 9. 状态模式
 *      默认 - 实现
 * @author shengren.yan
 * @create 2022-08-14
 */
public abstract class AbstractState implements State{

    protected static final RuntimeException EX = new RuntimeException("不可用");

    // 审核
    @Override
    public void check(Contest c) {
        throw EX;
    }

    // 发布
    @Override
    public void make(Contest c) {
        throw EX;
    }

    // 付款
    @Override
    public void pay(Contest c) {
        throw EX;
    }

    // 获取状态
    @Override
    public String getState() {
        throw EX;
    }
}
